//
//  HomeDeviceViewCell.m
//  Lightthings
//
//  Created by Hero on 2024/11/16.
//

#import "HomeDeviceViewCell.h"
#import "HomeDeviceViewModel.h"
@implementation HomeDeviceViewCell

- (void)setModel:(HomeDeviceViewModel *)model {
    [super setModel:model];
    self.bgView.layer.cornerRadius = 38;
    self.bgView.layer.masksToBounds = YES;
    
    if (model.type == 5) {
        self.icon.image = U_imageNamed(@"止鼾枕设备");
    }else if (model.type == 1000) {
        self.icon.image = U_imageNamed(@"添加＋");
    }else {
        self.icon.image = U_imageNamed(@"icon_watch_style_2");
    }
    self.titleLab.text =  model.name;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
